import ReconnectingWebSocket from 'reconnecting-websocket';
const WS_URL = "ws://ws.w-app.cc";
const ws = new ReconnectingWebSocket(WS_URL);

ws.onclose = e => {
  // console.log('onclose', e);
};

ws.onerror = e => {
  // console.log('onerror', e);
};

ws.onmessage = evt => {
  // console.log('evt', evt)
};

export default ws;
